# PowerShell script to activate Python virtual environment
if (Test-Path ".venv\Scripts\activate.ps1") {
    .\.venv\Scripts\activate.ps1
    Write-Host "Python虚拟环境已激活" -ForegroundColor Green
} else {
    Write-Host "虚拟环境不存在，请先运行: python -m venv .venv" -ForegroundColor Red
}